package com.cmc6.request.model.dto;

import com.cmc6.common.model.enums.RequestCategoryEnum;
import com.cmc6.common.util.MyPage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * {@link com.cmc6.common.model.entity.EsErrorDO}
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class RequestErrorLogPageDTO extends MyPage {

    @ApiModelProperty(value = "es 主键 id")
    private String _id;

    @ApiModelProperty(value = "请求的 uri")
    private String uri;

    @ApiModelProperty(value = "请求人 id")
    private Long createId;

    @ApiModelProperty(value = "创建开始时间")
    private String beginTime;

    @ApiModelProperty(value = "创建结束时间")
    private String endTime;

    @ApiModelProperty(value = "请求的服务名")
    private String service;

    /**
     * {@link RequestCategoryEnum}
     */
    @ApiModelProperty(value = "请求的类别：1 H5（网页端） 2 APP（移动端） 3 PC（桌面程序） 4 微信小程序")
    private Byte category;

    @ApiModelProperty(value = "请求者 ip")
    private String ip;

    @ApiModelProperty(value = "IpUtil.getRegion() 获取到的 ip所处区域")
    private String region;

    @ApiModelProperty(value = "请求主机的地址")
    private String address;

    @ApiModelProperty(value = "请求主机的端口")
    private Integer port;

    @ApiModelProperty(value = "是否已读")
    private Boolean readFlag;

}
